package com.vichat.user.service;

import com.vichat.common.vo.PageFilter;
import com.vichat.user.entity.SystemMessage;

import java.util.List;

/**
 * Created by ranjx on 2016/11/17.
 */
public interface ISystemMessageService {
    /**
     * 根据codeId获取系统参数
     *
     * @param msgId
     * @return
     */
    public SystemMessage querySystemMessageByMsgId(long msgId);

    public SystemMessage saveSystemMessage(SystemMessage bean);

    /**
     * 删除系统参数
     *
     * @param msgId
     * @throws Exception
     */
    public void delSystemMessage(long msgId) throws Exception;

    /**
     * 查询系统参数
     *
     * @param queryBean
     * @return
     * @throws Exception
     */
    public List<SystemMessage> querySystemMessage(SystemMessage queryBean, PageFilter pf) throws Exception;
    /**
     * 查询系统参数
     *
     * @param uid
     * @return
     * @throws Exception
     */
    public List<SystemMessage> querySystemMessageByUid(Long uid) throws Exception;

    /**
     * 查询系统参数数量
     *
     * @param queryBean
     * @return
     */
    public Long countSystemMessage(SystemMessage queryBean) throws Exception;

}
